package com.ffcs.ffxtc.config;

import com.ffcs.aop.LoggingAspect;
import com.ffcs.exception.GlobalException;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author zhangzhengxing
 */
@Configuration
public class BeanConfig {
    @Bean
    public GlobalException init() {
        return new GlobalException();
    }

    @Bean
    public LoggingAspect log() {
        return new LoggingAspect();
    }
}
